import request from '@/utils/request'

//删除分类
export function delTag(ids) {
  return request({
    url: '/blog/tag/' + ids,
    method: 'delete'
  })
}

//查询分类列表
export function listTag(query) {
  return request({
    url: '/blog/tag/list',
    method: 'get',
    params: query
  })
}

//添加分类
export function addTag(data) {
  return request({
    url: '/blog/tag',
    method: 'post',
    data: data
  })
}

// 获取所有标签
export function allTags() {
  return request({
    url: '/blog/tag/all',
    method: 'get'
  })
}
